package com.springcloudalibabaexample.controller;

import com.springcloudalibabaexample.feign.NacosClientFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OpenFeignController {

    @Autowired
    private NacosClientFeignService nacosClientFeignService;

    @GetMapping("/index")
    public String index(){
        return nacosClientFeignService.index();
    }


}
